package cn.zh.controller;

import cn.zh.commons.ResponseResult;
import cn.zh.service.LogInfoService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author : 张航
 * @date : 2024-05-30 15:09
 * @description:
 **/
@RestController
@RequestMapping("log")
public class LogInfoController {
    @Resource
    private LogInfoService logInfoService;
    @RequestMapping("page")
    public ResponseResult logsPage(Integer page, Integer limit, String model, String description){

        return logInfoService.logsPage(page,limit,model,description);

    }

    @RequestMapping("delete")
    public ResponseResult deletelogs(Integer [] ids){

        return logInfoService.deletelogs(ids);

    }

}
